﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using BLL;
using Model;
using Utility;

public partial class AlertUI_AlertIndex : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        BindData();
    }

    private void BindData()
    {
        AlertBLL ab = new AlertBLL();
        int ycCount = ab.AlertYearCheck((int)Session["OrganID"]);
        int scrapCount = ab.AlertScrap((int)Session["OrganID"]);
        int vioCount = ab.AlertViolation((int)Session["OrganID"]);
        int insCount = ab.AlertInsurance((int)Session["OrganID"]);


        btn_YC.Text = ycCount.ToString();
        btn_Scrap.Text = scrapCount.ToString();
        btn_Insurance.Text = insCount.ToString();
        btn_Violation.Text = vioCount.ToString();
    }

    public string getYC()
    {
        return "YC";
    }
    protected void btn_YC_Click(object sender, EventArgs e)
    {
        //string url = HttpContext.Current.Server.MapPath("../") + "VehicleUI\\YearCheck\\YearCheckMgr.aspx";
        //UtilityService.Redirect(this.Page,url);
    }
}
